package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.PageInfo;
import com.tanhua.dubbo.server.pojo.RecommendUser;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/15 10:25
 * @version: 0.0.1
 * @modified By:
 */
public interface RecommendUserApi {
    /**
     * @description 查询一位得分最高的推荐用户
     * @author
     * @date
     * @param  userId
     *@return
     */
    RecommendUser queryWithMaxScore(Long userId);
    /**
     * @description 按照得分倒序
     * @author
     * @date
     * @param userId，pageNum，pageSize
     *@return
     */
    PageInfo<RecommendUser> queryPageInfo(Long userId, Integer pageNum, Integer pageSize);
    /**
     * @description 查询推荐好友的缘分值
     * @author
     * @date
     * @param
     *@return
     */
    double queryScore(Long userId,Long toUserId);
}
